home *** CD-ROM | disk | FTP | other *** search
- property mySprite, myLoc, myMember, myType, purchased
-
- on beginSprite me
- mySprite = me.spriteNum
- myLoc = the loc of sprite mySprite
- myType = #IntInset
- hide(me)
- end
-
- on hide me
- set the loc of sprite mySprite to point(-10000, -10000)
- end
-
- on show me, showWhich
- put "InsetSprite got <show> with <showwhich> = " && showWhich && "and the frame =" && the frame
- showWhich = string(showWhich)
- showWhich = showWhich & "_inset"
- if the number of member showWhich = -1 then
- showWhich = "generic_inset"
- end if
- set the member of sprite mySprite to member(showWhich)
- myMember = member(showWhich)
- set the loc of sprite mySprite to myLoc
- end
-
- on KillInteriorInset me
- hide(me)
- end
-
- on sendSpriteNum me, whichType
- if whichType = me.myType then
- return mySprite
- end if
- end
-
- on insetShowing me
- if the loc of sprite mySprite = myLoc then
- return 1
- else
- return 0
- end if
- end
-